package com.ffox.service.impl;

import com.ffox.entity.StudentInformation;
import com.ffox.mapper.UserTeacherSubjectMapper;
import com.ffox.service.UserTeacherSubjectService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class UserTeacherSubjectServiceImpl implements UserTeacherSubjectService {
    @Autowired
    private UserTeacherSubjectMapper userTeacherSubjectMapper;
    @Override
    public List<Map<String, Object>> getClassByUserNum(String userNum) {
        return userTeacherSubjectMapper.getClassByUserNum(userNum);
    }

    @Override
    public List<StudentInformation> getStudentsByClassId(Long classId) {
        return userTeacherSubjectMapper.getStudentsByClassId(classId);
    }
}
